package com.hundsun.yr.universal.p2p.bean;

import java.io.Serializable;

import android.text.TextUtils;

/**
 * @Title: ZWGTAccount.java
 * @Description: 账户、资产总览
 * @date 2016-2-2 下午6:24:43
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com
 * @replace author:
 * @replace date:
 * @version V1.0
 */
public class ZWGTAccount extends ResponseBean implements Serializable {


	private static final long serialVersionUID = 1L;
	
	/**
	 * 绑卡状态WAIT_AUTH("0", "待认证"), AUTH_PASS("1", "认证通过"), AUTH_NO_PASS("2", "认证不通过"),;
	 */
	private String authStatus;
	/**
	 * 绑定卡号
	 */
	private String cardNo;
	/**
	 * 账户余额
	 */
	private double currentBalance;
	/**
	 * 可用余额
	 */
	private double enableBalance;
	/**
	 * 冻结余额
	 */
	private double frozenBalance;
	/**
	 * 客户在托管机构的编号(电子账号)
	 */
	private String thirdUserid;
	/**
	 * 可提现余额
	 */
	private double withdrawBalance;
	public String getAuthStatus() {
		return authStatus;
	}
	public void setAuthStatus(String authStatus) {
		this.authStatus = authStatus;
	}
	public String getCardNo() {
		return cardNo;
	}
	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}
	public double getCurrentBalance() {
		return currentBalance;
	}
	public void setCurrentBalance(double currentBalance) {
		this.currentBalance = currentBalance;
	}
	public double getEnableBalance() {
		return enableBalance;
	}
	public void setEnableBalance(double enableBalance) {
		this.enableBalance = enableBalance;
	}
	public double getFrozenBalance() {
		return frozenBalance;
	}
	public void setFrozenBalance(double frozenBalance) {
		this.frozenBalance = frozenBalance;
	}
	public String getThirdUserid() {
		return thirdUserid;
	}
	public void setThirdUserid(String thirdUserid) {
		this.thirdUserid = thirdUserid;
	}
	public double getWithdrawBalance() {
		return withdrawBalance;
	}
	public void setWithdrawBalance(double withdrawBalance) {
		this.withdrawBalance = withdrawBalance;
	}
	
	/**
	 *  绑卡状态
	 */
	public static final class AuthStatus {
		/**
		 * 待认证
		 */
		public static String WAIT_AUTH = "WAIT_AUTH";
		/**
		 * 认证通
		 */
		public static String AUTH_PASS = "AUTH_PASS";
		/**
		 * 认证不通过
		 */
		public static String AUTH_NO_PASS = "AUTH_NO_PASS";
	}
	
	/**
	 * 是否显示卡号
	 * @return
	 */
	public boolean displayCardNo(){
		boolean ifDisplay=false;
		
		if(TextUtils.equals(authStatus, AuthStatus.WAIT_AUTH)){
			ifDisplay= false;
		}else if(TextUtils.equals(authStatus, AuthStatus.AUTH_PASS)){
			ifDisplay=  true;
		}else if(TextUtils.equals(authStatus, AuthStatus.AUTH_NO_PASS)){
			ifDisplay=  false;
		}
		
		return ifDisplay;
	}

}
